home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 441 / fplib20 / fplib.h < prev    next >
C/C++ Source or Header  |  1990-11-23  |  509b  |  22 lines

  1. /* Common definitions for FPLIB                        */
  2. /* Copyright © David Brooks, 1989 All Rights Reserved            */
  3.  
  4. #ifndef    MATH_H
  5. #include <math.h>        /* Now they're all defined */
  6. #endif
  7.  
  8. /* Some facts about the representation                    */
  9.  
  10. #define BIAS        0x40
  11. #define MANT_BITS    24
  12. #define EXP_MASK    0x7F
  13. #define HUGE_AS_INT    0xFFFFFF7F
  14.  
  15. /* Redefine a 32-bit float number.  Can initialize with unsigned long.    */
  16.  
  17. typedef union {
  18.     unsigned long ul;
  19.     float f;
  20.     char sc[4];            /* Assuming char signed */
  21.     } fstruct;
  22.